<div class="thumbnails">
  <g:javascript>
    var picUrl = '${grailsApplication.config.imagesPath}'
    var thumbnailId = 0
    var displayId = 1
    var thumbnailSubdir = '${VersionType.PredefinedVersions[0].subdir}'
    var displaySubdir = '${VersionType.PredefinedVersions[1].subdir}'
  </g:javascript>
  <div id="thumbnail_wrapper">
    <div id="thumbnail_container">
      <g:each var="thumbnail" in="${thumbnails}">
        <g:link action="slideshow" params="[year:ytag.name, month:mtag.name, index:thumbnail.index]">
          <img src="${thumbnail.src}" width="${thumbnail.width}" height="${thumbnail.height}" class="thumbnail" />
        </g:link>
      </g:each>
    </div>
  </div>
</div>
